package org.example.baseinfo.common.page;

import java.util.List;

public class HxPage<T> {

    private int pageNum;
    private int pageSize;
    private int totalPages;
    private boolean isAsc;
    private String orderBy;
    private List<T> content;
    public HxPage() {
    }

    public HxPage(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    /**
     * Getter method for property <tt>pageNum</tt>.
     *
     * @return property value of pageNum
     */
    public int getPageNum() {
        return pageNum;
    }

    /**
     * Setter method for property <tt>pageNum</tt>.
     *
     * @param pageNum value to be assigned to property pageNum
     */
    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    /**
     * Getter method for property <tt>pageSize</tt>.
     *
     * @return property value of pageSize
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * Setter method for property <tt>pageSize</tt>.
     *
     * @param pageSize value to be assigned to property pageSize
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * Getter method for property <tt>totalPages</tt>.
     *
     * @return property value of totalPages
     */
    public int getTotalPages() {
        return totalPages;
    }

    /**
     * Setter method for property <tt>totalPages</tt>.
     *
     * @param totalPages value to be assigned to property totalPages
     */
    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    /**
     * Getter method for property <tt>isAsc</tt>.
     *
     * @return property value of isAsc
     */
    public boolean isAsc() {
        return isAsc;
    }

    /**
     * Setter method for property <tt>isAsc</tt>.
     *
     * @param isAsc value to be assigned to property isAsc
     */
    public void setAsc(boolean asc) {
        isAsc = asc;
    }

    /**
     * Getter method for property <tt>orderBy</tt>.
     *
     * @return property value of orderBy
     */
    public String getOrderBy() {
        return orderBy;
    }

    /**
     * Setter method for property <tt>orderBy</tt>.
     *
     * @param orderBy value to be assigned to property orderBy
     */
    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    /**
     * Getter method for property <tt>content</tt>.
     *
     * @return property value of content
     */
    public List<T> getContent() {
        return content;
    }

    /**
     * Setter method for property <tt>content</tt>.
     *
     * @param content value to be assigned to property content
     */
    public void setContent(List<T> content) {
        this.content = content;
    }
}
